package com.project.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.bean.LogBean;
import com.project.service.ILogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDate;

@RestController
@RequestMapping("log")
public class LogController {
    @Autowired
    private ILogService logService;

    @RequestMapping("cutByItem")
    public IPage<LogBean> cutByItem(Integer pageNO, LocalDate startDate, LocalDate endDate) {
        return logService.cutByItem(pageNO, startDate, endDate);
    }

    ;

}
